home *** CD-ROM | disk | FTP | other *** search
/ SunSoft Catalyst CDWARE 1996 May to August / Catalyst CDWARE 1996 May to August.iso / .products / .bin / finish.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1996-04-01  |  2KB  |  63 lines

  1. #!/bin/sh 
  2. #
  3. #cmdtool $CD_MOUNT/find.sh
  4. #$CD_MOUNT/.products/.bin/gui/$CDWARE_ENV/netscape -xrm "*strings.22130:This process will either Install, Remove, or Launch\nsoftware from CDware.\n\nProceed?\n" -geometry =665x770+0+0 file://$WWW_HOME
  5.  
  6.  
  7. if [ "$NETSCAPE_CATALYST" != "" ]; then
  8. $NETSCAPE_CATALYST -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from CDware.\n\nProceed?\n" -geometry =665x770+0+0 file://$WWW_HOME 2>&-
  9. else
  10. $CD_MOUNT/.products/.bin/gui/$CDWARE_ENV/netscape -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from CDware.\n\nProceed?\n" -geometry =665x770+0+0 file://$WWW_HOME 2>&-
  11. fi
  12.  
  13. #
  14. # clean-up
  15. #
  16. if [ "$CDWARE_ENV" != "Solaris_1" ]; then
  17.         audioplay -i $CD_MOUNT/.products/$disc_name/sounds/bye.au&
  18. else
  19.         cat $CD_MOUNT/.products/$disc_name/sounds/bye.au > /dev/audio&
  20. fi
  21.  
  22.  
  23. # mail or print more information request
  24.  
  25. if [ -r /tmp/httpd/info.email ]; then
  26.      echo "------------------------------" >> /tmp/httpd/info.email
  27.   /usr/ucb/mail -s "$disc_name Lead for Your Product" < /tmp/httpd/info.email cdwareemlts@sun.com 
  28. fi
  29. if [ -r /tmp/httpd/info.fax ]; then  
  30.      echo "------------------------------" >> /tmp/httpd/info.fax
  31.      echo "" >> /tmp/httpd/info.fax
  32.      echo "FAX US! at (415)961-6070" >> /tmp/httpd/info.fax
  33.      echo "" >> /tmp/httpd/info.fax
  34.      echo "------------------------------" >> /tmp/httpd/info.fax
  35.       /usr/ucb/lpr /tmp/httpd/info.fax
  36. fi
  37.  
  38.  
  39.  
  40. # kill httpd
  41.  
  42. kill -9 `cat /tmp/httpd/logs/httpd.pid`
  43.  
  44. # Clean up wais stuff:kill wais, remove link
  45.  
  46. rm -f /tmp/.wais /tmp/waisserver.log 
  47. kill $PID_CDWARE
  48. kill $PID_CATALOG
  49.  
  50.  
  51. # remove httpd config
  52.  
  53. rm -rf /tmp/httpd
  54.  
  55. if [ "$dir_exist" = "1" ]; then
  56.   mv $HOME/.netscape/preferences.SunCD $HOME/.netscape/preferences
  57. else 
  58.   rm -rf $HOME/.netscape
  59. fi
  60.  
  61.  
  62. exit 0
  63.